HTTPSocket.SetRequestHeader Method

Sets the value of a request header. Request headers are sent to the server along with the action (GET, POST, etc.).

Syntax

HTTPSocket.SetRequestHeader Name, Value


Parameters

Name

String

Value

String


They can contain data that the server might use to process your request. Some examples of common request headers are for things such as referring pages, the client name, OS CPU, and so forth.